package com.demo

import java.time.LocalDate
import java.time.format.DateTimeFormatter

object HelloScala {
  def main(args: Array[String]) {
    val start = args(0)
    val end = args(1)
    val formatter1 = DateTimeFormatter.ofPattern("yyMMdd")
    val formatter2 = DateTimeFormatter.ofPattern("yyyy-MM-dd")
    var formattedDate = LocalDate.parse(start, formatter1)
    val endDate = LocalDate.parse(end, formatter1)

    while (endDate.isBefore(formattedDate)) {
      val dt1 = formatter1.format(formattedDate)
      val dt2 = formatter2.format(formattedDate)
      println(dt1)
      println(dt2)
      formattedDate = formattedDate.plusDays(1)
    }

    println(args.length)
    println(args(0))
    val a=s"a=${start}\tb=${end}c'\\001'def"
    print(a)

  }
}